package com.joinlabs.action;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/admin")
public class AdminAction {
	//访问后台管理系统首页
	@RequestMapping("/index")
	public ModelAndView index(){
		return new ModelAndView("/admin/index");
	}
	
	//后台登录界面
	@RequestMapping("/login")
	public ModelAndView login(){
		return new ModelAndView("/admin/login");
	}
	
	//后台查看用户界面
	@RequestMapping("/user")
	public ModelAndView user(){
		return new ModelAndView("/admin/user");
	}
	
	//后台查看微博界面
	@RequestMapping("/weibo")
	public ModelAndView weibo(){
		return new ModelAndView("/admin/weibo");
	}
	
	//后台查看文章界面
	@RequestMapping("/log")
	public ModelAndView log(){
		return new ModelAndView("/admin/log");
	}
	
	//后台查看文章界面
	@RequestMapping("/blackuser")
	public ModelAndView blackuser(){
		return new ModelAndView("/admin/blackuser");
	}
}
